from redis import StrictRedis

logredis = StrictRedis(host='localhost', port=6379, db=0)


def add_set(name, value):
    logredis.sadd(name, value)
# 采用python12后运行报错，目前暂时采用本地化存储方式解决
